package stream;

import java.lang.reflect.Array;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Random;
import java.util.stream.Stream;

public class StreamTest {
    public static void main(String[] args) {
        List<Integer> integers = Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9);
        List<Integer> integers1 = Arrays.asList(1, 1, 1, 1, 1, 1, 1, 1, 1);
        System.out.println(integers.stream().allMatch(x -> x == 1));
        System.out.println(integers1.stream().allMatch(x -> x == 1));
//        BigInteger.probablePrime()
        BigInteger bigInteger = BigInteger.probablePrime(3, new Random(10));
        System.out.println(bigInteger);
        Boolean.valueOf(true);
    }

}
